#pragma once
#include <qthread.h>
#include "Channels.h"
#include <memory>

class SocketMain : public QThread
{
	Q_OBJECT
public:
protected:
	void run() override;
private:

};

class SocketSendThread : public QThread
{
	Q_OBJECT
public:
protected:
	void run() override;
private:

};

bool SocketSystemInitialize();

void SocketSystemShutdown();

Channel* CreateChannel(const ChannelCreateInfo*);

void DestoryChannel(Channel*);